Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Sep 26, 2025

No description provided.

@nikgraf nikgraf requested a review from Copilot September 26, 2025 15:00
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the behavior of the processConnectAuthSuccess function by changing its return type from void to a discriminated union that indicates success/failure status. The function now returns a success object with the identity or a failure object with an error message.

  • Changed processConnectAuthSuccess to return success/failure result objects instead of void
  • Replaced alert() calls with proper error returns within the authentication function
  • Updated all authentication callback components to handle the new return type and display errors appropriately

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/hypergraph-react/src/HypergraphAppContext.tsx Updated function signature and implementation to return success/error objects
docs/docs/authentication.md Updated documentation example to handle new return type
apps/template-vite-react/src/routes/authenticate-success.tsx Updated to handle new return type and prevent duplicate processing
apps/template-nextjs/Components/Login/AuthCallback.tsx Updated to handle new return type and prevent duplicate processing
apps/privy-login-example/src/routes/authenticate-success.tsx Updated to handle new return type and prevent duplicate processing
apps/events/src/routes/authenticate-success.tsx Updated to handle new return type and prevent duplicate processing
.changeset/cuddly-guests-hug.md Added changeset documenting the improvement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nikgraf nikgraf merged commit 1d29c53 into main Sep 26, 2025
6 checks passed
@nikgraf nikgraf deleted the ng/bug-fixes branch September 26, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant